package com.example.demo.controller;


import com.example.demo.entity.response.Response;
import com.example.demo.service.CompanyService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@Api(tags ="公司接口")
@RestController
@RequestMapping("/company")
@CrossOrigin(origins = "*", maxAge = 3600)
public class CompanyController {

    @Autowired
    CompanyService companyService;

    @GetMapping("info")
    public Response selectCompany(){
        return companyService.companySelect();
    }
}
